module.exports = [
  {
    url: '/user/authLogin',
    type: 'post',
    response: (config) => {
      console.log('config =' + JSON.stringify(config.body))
      return {
        code: '0000',
        data: {
          // 'token|1-5': /\d{5,10}\-/,
          token:
            // eslint-disable-next-line max-len
            'qGd3jRV8kKvgQ4AtB/+NdeMKSqdc0P+rh9/S3KjWRXldy5WppvDtEVu76r0k6n7gqyaNusKrGHKzpx73VVN3ng6khs5/28xinjOm0agGmorTdAbE3Z2KtLlTyv2m/mX8gLiDSouzjXLVxygrlYOdwmFYDpK4tvO8zLkK3P8hw6k2LawOGN3VTUy3ttLfCGrCnSI7fUdYpQqHTmAg08tMSI0fNynm422PnoNGcqThO8X7OYmYaeJg50W3eFmisWZgG1lQ2HVjIT56uAYjVtcZB/k9Tso8smxBr1WSofZAkos=',
        },
      }
    },
  },
  {
    url: '/user/loadNode',
    type: 'post',
    response: (config) => {
      console.log('config =' + JSON.stringify(config.body))
      return {
        code: '0000',
        data: [
          { orgName: '小满诊所珠江新城', id: 1, address: '' },
          { orgName: '小满诊所汉溪长隆', id: 2, address: '' },
        ],
      }
    },
  },
  {
    url: '/emrweb/user/getUserOrgMenu',
    type: 'get',
    response: () => {
      return require('./dataJson/user/getUserOrgMenu.json')
    },
  },
  {
    url: '/emrweb/menu/menus',
    type: 'get',
    response: () => {
      return {
        code: '0000',
        data: {
          authRoute: [
            {
              id: '1',
              menuName: '工作台',
              menuUrl: 'workbench',
              menuCode: '',
              parentId: '',
              createBy: '',
              modifyBy: '',
              menuType: '',
              sysId: '',
              menus: [
                {
                  id: '3',
                  menuName: '待诊患者',
                  menuUrl: 'waitingImp',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '2',
                  menuName: '患者列表',
                  menuUrl: 'patientList',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '14',
                  menuName: '患者信息',
                  menuUrl: 'patientInfo',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
              ],
            },
            {
              id: '4',
              menuName: '系统设置',
              menuUrl: 'setting',
              menuCode: '',
              parentId: '',
              createBy: '',
              modifyBy: '',
              menuType: '',
              sysId: '',
              menus: [
                {
                  id: '5',
                  menuName: '角色管理',
                  menuUrl: 'roles',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '6',
                  menuName: '角色设置',
                  menuUrl: 'roleSetting',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '7',
                  menuName: '机构信息',
                  menuUrl: 'orgInfo',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '8',
                  menuName: '机构列表',
                  menuUrl: 'orgList',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '9',
                  menuName: '机构人员管理',
                  menuUrl: 'orgPersonnelList',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '10',
                  menuName: '机构人员信息',
                  menuUrl: 'personnelInfo',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '11',
                  menuName: '科室维护',
                  menuUrl: 'departments',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '12',
                  menuName: '科室信息',
                  menuUrl: 'departmentInfo',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
                {
                  id: '13',
                  menuName: '操作日志',
                  menuUrl: 'userLog',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
              ],
            },
            {
              id: '16',
              menuName: '会议',
              menuUrl: 'meeting',
              menuCode: '',
              parentId: '',
              createBy: '',
              modifyBy: '',
              menuType: '',
              sysId: '',
              menus: [
                {
                  id: '17',
                  menuName: '会议大厅',
                  menuUrl: 'meetingHall',
                  menuCode: '',
                  parentId: '',
                  createBy: '',
                  modifyBy: '',
                  menuType: '',
                  sysId: '',
                  menus: [],
                },
              ],
            },
          ],
        },
      }
    },
  },
]
